package com.hs.biye.service;

import com.hs.biye.model.DTO.RoomRequest;
import com.hs.biye.model.VO.RoomVo;
import com.hs.biye.model.entity.Room;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.biye.model.reslut.Result;
import com.hs.biye.model.reslut.ResultPage;

import java.util.List;

/**
* @author haoshuai
* @description 针对表【room】的数据库操作Service
* @createDate 2024-01-18 12:18:20
*/
public interface RoomService extends IService<Room> {
    /**
     * 分页查询
     * @param roomRequest
     * @return
     */
    ResultPage<RoomVo> getPageRoom(RoomRequest roomRequest);


    /**
     * 新增
     */
    Boolean addRoom(RoomRequest roomRequest);

    /**
     * 修改
     */
    Boolean updateRoom(RoomRequest roomRequest);


    /**
     * 删除
     */
    Boolean deleteRoom(Integer id);

    RoomVo getRoomById(Integer id);

    List<RoomVo> getRoomByAndRoomNumber(Integer type);
}
